<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActivityQuestion extends Model
{
    protected $table = 'activity_question';

    protected $guarded = [''];

    protected function getDateFormat()
    {
        return 'U';
    }


    public function user()
    {
        return $this->belongsTo('App\Models\User', 'uid', 'uid');
    }


    public function activity()
    {
        return $this->belongsTo('App\Models\Activity', 'activity_id', 'id');
    }

}
